﻿using ScFramework.Core;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PhysicsMgr : LogicModuleBase
{

    public override void Update()
    {
        base.Update();
        Physics2D.gravity = Physics2D.gravity.magnitude * GetInnerModule<InstanceInfo>().DownVec;
    //    GetInnerModule<InstanceInfo>().Player.GetComponentInChildren<Rigidbody2D>().gravityScale =Mathf.Sqrt(GetInnerModule<InstanceInfo>().Scale);
    }
}